summaryrefslogtreecommitdiff
path: root/xts5/XtC/XtPeekEvent.m
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2013-06-03 16:09:11 -0400
committerPeter Harris <pharris@opentext.com>2013-06-03 18:14:39 -0400
commit95f4712a5554f2b591b22a6395de31f095071913 (patch)
treef838b2e7100ba6f1525eb170b541c14dc485fba4 /xts5/XtC/XtPeekEvent.m
parent001281cfbf7e0f9bce202e628baffa23714e273c (diff)
Write results directly to results directory
If an installed xtest is run, the user does not normally have write access to the test directory. Writing intermediate files and results directly to the results directory avoids a number of spurious FAILs and UNRESOLVEDs. Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Peter Harris <pharris@opentext.com>
Diffstat (limited to 'xts5/XtC/XtPeekEvent.m')
-rw-r--r--xts5/XtC/XtPeekEvent.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/xts5/XtC/XtPeekEvent.m b/xts5/XtC/XtPeekEvent.m
index ec39a655..a5464b2d 100644
--- a/xts5/XtC/XtPeekEvent.m
+++ b/xts5/XtC/XtPeekEvent.m
@@ -131,10 +131,10 @@ void XtTMO4_Proc(client_data, id)
XtPointer client_data;
XtIntervalId *id;
{
-char *data;
+const char *data;
avs_set_event(1, 1);
- data = "data1";
+ data = outfile("data1");
sprintf(ebuf, "PREP: Open file %s for read", data);
tet_infoline(ebuf);
if ((fid = (FILE *)fopen(data, "w+")) == NULL) {
@@ -337,4 +337,4 @@ int pstatus;
else {
tet_result(TET_PASS);
}
- unlink("data1");
+ unlink(outfile("data1"));