Changeset 13850
- Timestamp:
- Jan 23, 2013, 8:51:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/rename-test.c
r13848 r13850 462 462 char buf[32]; 463 463 464 errno = 0; 464 465 path = tr_buildPath (top, "files-filled-with-zeroes", NULL); 465 466 tr_mkdirp (path, 0700); … … 469 470 tr_snprintf (buf, sizeof(buf), "%d", n); 470 471 path = tr_buildPath (top, "files-filled-with-zeroes", buf, NULL); 472 fprintf (stderr, "%s\n", path); 473 fprintf (stderr, "errno is %d (%s)\n", errno, tr_strerror (errno)); 471 474 fp = fopen (path, "wb+"); 472 475 for (i=0; i<n; ++i) … … 478 481 tr_snprintf (buf, sizeof(buf), "%d", n); 479 482 path = tr_buildPath (top, "files-filled-with-zeroes", buf, NULL); 483 fprintf (stderr, "%s\n", path); 484 fprintf (stderr, "errno is %d (%s)\n", errno, tr_strerror (errno)); 480 485 fp = fopen (path, "wb+"); 481 486 for (i=0; i<n; ++i) … … 487 492 tr_snprintf (buf, sizeof(buf), "%d.part", n); 488 493 path = tr_buildPath (top, "files-filled-with-zeroes", buf, NULL); 494 fprintf (stderr, "%s\n", path); 495 fprintf (stderr, "errno is %d (%s)\n", errno, tr_strerror (errno)); 489 496 fp = fopen (path, "wb+"); 490 497 n -= 100; … … 493 500 fclose (fp); 494 501 tr_free (path); 502 fprintf (stderr, "errno is %d (%s)\n", errno, tr_strerror (errno)); 495 503 496 504 sync (); … … 562 570 test_partial_file }; 563 571 572 verbose = 1; 573 564 574 libtransmission_test_session_init (); 565 575 ret = runTests (tests, NUM_TESTS (tests));
Note: See TracChangeset
for help on using the changeset viewer.