diff options
author | ted.mielczarek%gmail.com <devnull@localhost> | 2010-09-24 18:21:22 +0000 |
---|---|---|
committer | ted.mielczarek%gmail.com <devnull@localhost> | 2010-09-24 18:21:22 +0000 |
commit | 19dfb7af18535f0b1402c98ba74e5f7c8e9a1f17 (patch) | |
tree | a1db3cc9571af0d63a774a0bd4c82d255a78822e | |
parent | 7f5e179ee58fcde652f7556dfba8d06a2b48f0ca (diff) | |
download | nspr-hg-NSPR_HEAD_20100924.tar.gz |
bug 556190 - op_filok NSPR test fails on Android. Patch by Alex Pakhotin <alexp@mozilla.com>, r=tedNSPR_HEAD_20100924
-rw-r--r-- | pr/tests/op_filok.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/pr/tests/op_filok.c b/pr/tests/op_filok.c index 3218c1fc..d422357e 100644 --- a/pr/tests/op_filok.c +++ b/pr/tests/op_filok.c @@ -55,38 +55,17 @@ #include "prerror.h" #include <stdio.h> -/* - * The name of a file that is guaranteed to exist - * on every machine of a particular OS. - */ -#if defined(SYMBIAN) -#define EXISTING_FILENAME "z:\\system\\install\\Series60v3.0.sis" -#elif defined (XP_UNIX) -#define EXISTING_FILENAME "/bin/sh" -#elif defined(WINCE) -#define EXISTING_FILENAME "/Windows/services.exe" -#elif defined(WIN32) -#define EXISTING_FILENAME "c:/autoexec.bat" -#elif defined(OS2) -#define EXISTING_FILENAME "c:/config.sys" -#elif defined(BEOS) -#define EXISTING_FILENAME "/boot/beos/bin/sh" -#else -#error "Unknown OS" -#endif - static PRFileDesc *t1; int main(int argc, char **argv) { PR_STDIO_INIT(); - t1 = PR_Open(EXISTING_FILENAME, PR_RDONLY, 0666); + t1 = PR_Open(argv[0], PR_RDONLY, 0666); if (t1 == NULL) { printf ("error code is %d \n", PR_GetError()); - printf ("File %s should be found\n", - EXISTING_FILENAME); + printf ("File %s should be found\n", argv[0]); return 1; } else { if (PR_Close(t1) == PR_SUCCESS) { |