Revision: 40716
http://brlcad.svn.sourceforge.net/brlcad/?rev=40716&view=rev
Author: starseeker
Date: 2010-09-27 21:51:54 +0000 (Mon, 27 Sep 2010)
Log Message:
-----------
Change this a bit - have each of the 100 forks try to get their own number into
the repository. I'm not quite sure how to interpert the result, but I think
they are encouraging - of the 100 attempts, only one succeeds (somewhat at
random) and all of the others report conflicts when trying to do an update. I
think this is correct behavior.
Modified Paths:
--------------
rt^3/branches/subversion-cmake/svnstress/main.c
Modified: rt^3/branches/subversion-cmake/svnstress/main.c
===================================================================
--- rt^3/branches/subversion-cmake/svnstress/main.c 2010-09-27 21:39:09 UTC
(rev 40715)
+++ rt^3/branches/subversion-cmake/svnstress/main.c 2010-09-27 21:51:54 UTC
(rev 40716)
@@ -147,17 +147,13 @@
/* Increment the file */
char file_path[1024];
+ sprintf(file_path, "%s/test_file",
full_checkout_path);
char file_numstr[60];
int file_number;
FILE *fp;
- sprintf(file_path,"%s/test_file",
full_checkout_path);
- fp = fopen(file_path, "r");
- fgets(file_numstr, 50, fp);
- sscanf(file_numstr, "%d", &file_number);
- fclose(fp);
- sprintf(file_numstr,"%d", file_number + 1);
+ sprintf(file_numstr,"%d", i);
fp = fopen(file_path,"w");
- fputs (file_numstr, fp);
+ fputs(file_numstr, fp);
fclose (fp);
/* Commit the change */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits