You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2010/09/23 19:21:05 UTC
svn commit: r1000546 - /trafficserver/traffic/trunk/proxy/InkAPITest.cc
Author: zwoop
Date: Thu Sep 23 17:21:05 2010
New Revision: 1000546
URL: http://svn.apache.org/viewvc?rev=1000546&view=rev
Log:
Changed the "tmp" file used for regression test, to make sure we can
write to it (now in /tmp/). It is removed when we finish.
Modified:
trafficserver/traffic/trunk/proxy/InkAPITest.cc
Modified: trafficserver/traffic/trunk/proxy/InkAPITest.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPITest.cc?rev=1000546&r1=1000545&r2=1000546&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/InkAPITest.cc (original)
+++ trafficserver/traffic/trunk/proxy/InkAPITest.cc Thu Sep 23 17:21:05 2010
@@ -863,10 +863,7 @@ REGRESSION_TEST(SDK_API_INKfopen) (Regre
SDK_RPRINT(test, "INKfopen", "TestCase1", TC_PASS, "ok");
// Create unique tmp _file_name_, do not use any TS file_name
- // XXX: Where is this file created?
- // It should be temporary file I presume so it should be
- // created either in /tmp or runtimedir
- snprintf(write_file_name, PATH_NAME_MAX, "%sXXXXXX", PFX);
+ snprintf(write_file_name, PATH_NAME_MAX, "/tmp/%sXXXXXX", PFX);
int write_file_fd; // this file will be reopened below
if ((write_file_fd = mkstemp(write_file_name)) <= 0) {
SDK_RPRINT(test, "mkstemp", "std func", TC_FAIL, "can't create file for writing");