diff --git a/mozilla/tools/testy/Makefile.in b/mozilla/tools/testy/Makefile.in index b7d02fef0b4..3f779981669 100644 --- a/mozilla/tools/testy/Makefile.in +++ b/mozilla/tools/testy/Makefile.in @@ -26,10 +26,12 @@ EXTRA_DSO_LDOPTS = \ $(NULL) LIBS = \ - tstysupt.lib \ + -ltstysupt \ $(NSPR_LIBS) \ $(NULL) +DIRS = sample + include $(topsrcdir)/config/config.mk include $(topsrcdir)/config/rules.mk diff --git a/mozilla/tools/testy/TestySupport.cpp b/mozilla/tools/testy/TestySupport.cpp index 54bf414d6ba..17c952ee948 100644 --- a/mozilla/tools/testy/TestySupport.cpp +++ b/mozilla/tools/testy/TestySupport.cpp @@ -5,7 +5,7 @@ FILE* gLogFile = NULL; int Testy_LogInit(const char* fileName) { - gLogFile = fopen(fileName, "r+b"); + gLogFile = fopen(fileName, "w+b"); if (!gLogFile) return -1; return 0; } diff --git a/mozilla/tools/testy/sample/Makefile.in b/mozilla/tools/testy/sample/Makefile.in index a5a831a4236..3249645481a 100644 --- a/mozilla/tools/testy/sample/Makefile.in +++ b/mozilla/tools/testy/sample/Makefile.in @@ -20,7 +20,7 @@ CPPSRCS = \ $(NULL) EXTRA_DSO_LDOPTS = \ - ../tstysupt.lib \ + -ltstysupt \ $(NSPR_LIBS) \ $(NULL)