Commit Graph

2182 Commits

Author SHA1 Message Date
Clemens Zeidler
c87bbc398c The BButton's have a max and min size which were previously ignore by ALM. Set an expicite button size to make the tests work after the last BALMLayout changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-21 23:22:17 +00:00
Clemens Zeidler
b8c3b029e4 Some style fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-21 07:08:10 +00:00
Clemens Zeidler
6c0294819a Fix ALM tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-20 22:48:49 +00:00
Oliver Tappe
4a0b7d1bd0 * don't try to check __isctype((char)255), as it will clash with
neutral/identity value at -1 (EOF)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-18 15:51:37 +00:00
Oliver Tappe
611e1071a7 * add ctype-related tests that expose the cause of #6599
* fix warnings

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-18 14:31:13 +00:00
Oliver Tappe
338ddd836f Closing #6499:
* add missing getsubopt() POSIX-function
* added corresponding test


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-14 18:43:24 +00:00
Oliver Tappe
5d46644f18 * added tests for localized numerical formatting via printf()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 17:21:28 +00:00
Ingo Weinhold
e13706775f Whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 11:22:15 +00:00
Ingo Weinhold
c1a1df8d83 Typo: & used instead of &&.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 09:58:49 +00:00
Ingo Weinhold
66c75febfd Missing parentheses.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 09:57:59 +00:00
Ingo Weinhold
a738ca2c55 Build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 09:57:26 +00:00
Oliver Tappe
69b46b571e * improved ParseDateTest to check several different timezones
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-11 18:32:34 +00:00
Oliver Ruiz Dorantes
8235dffe80 Last message key was closing the socket earlier than I expected
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-28 16:07:59 +00:00
Clemens Zeidler
e71b4c11de Add a simple BWindowStack test app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 06:50:35 +00:00
Oliver Tappe
560b10ff88 Implement tzset(), gmtime(), localtime() and mktime() on top of ICU
* no longer keep a separate time-backend, since the implementation needs to
  access (data of) the locale backend anyway
* moved more stuff from localtime_fading_out.c to localtime.cpp
* added respective tests to locale_test
* added two more tests copied from glibc, test_time.c and tst-mktime.c


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 21:14:23 +00:00
Axel Dörfler
757a6d2587 * Added the IPv6 test programs as part of Atis latest patch.
* Added an ipv6_ prefix to all test apps, as their names clashed with existing
  test apps.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-11 12:34:44 +00:00
Philippe Houdoin
6eba591215 Import GLSL brick demo (small change: no glew, which one day we should support though).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 10:46:08 +00:00
Philippe Houdoin
3f7aeed212 Don't link with libstdc++ for plain C samples.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 10:43:56 +00:00
Philippe Houdoin
2d189f198f Add code to test leaving game mode to return to window mode...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-04 14:38:13 +00:00
Philippe Houdoin
92f5c6a2f7 Display mode options should be set too before entering game mode!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-03 17:33:08 +00:00
Philippe Houdoin
e70782a501 Slow down a bit the cube spinning, and fix a warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-03 16:28:32 +00:00
Philippe Houdoin
24ca4df9de * Group all GLUT exit cleanup tasks in one place, __glutExitCleanup().
* Automatically leave game mode if it's still active at exit
 * Remove explicit game mode cleanup from testbed app.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-30 15:18:09 +00:00
Philippe Houdoin
6e55a1104a Expand to dump game mode attributes, clean exit and changing game mode string anytime.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-30 12:17:11 +00:00
Michael Pfeiffer
ff973abc41 * Align the scaled picture at the top to the unscaled
one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-30 09:20:09 +00:00
Michael Pfeiffer
8247141f14 * Added testDrawScaledPicture which exposes a bug
drawing a scaled picture at an offset. The offset
  needs to be scaled too, but isn't right now.
* Fixed testDrawLargeBitmap. The bounds were negative.
* Added testFontRotation. Works fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-30 09:12:57 +00:00
Philippe Houdoin
9e332eb5ef Add a quick and dirty GLUT game mode testbed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-29 14:33:22 +00:00
Adrien Destugues
e88fbde60b * Fix some issues in collators archiving and key computation
* The test now pass. But unarchiving still isn't working and restores the default collator instead of the archved one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-28 14:23:08 +00:00
Adrien Destugues
2c6ebfaaea * Fix collator text
* Fix archiving/unarchiving to provide at least a valid object. However, ICU archiving system doesn't look like it's working well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-28 13:16:11 +00:00
Oliver Tappe
60656c54d1 * don't use B_USE_POSITIVE_POSIX_ERRORS in libroot, let any interested party
use that and the posix_error_mapper

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-25 17:20:39 +00:00
Oliver Tappe
a4823efd7d Fix problems with sed and gcc caused by reintegration of posix-locale:
* support invocation of ctype/wctype macros with EOF/WEOF (-1), which would
  access more or less random memory before - I don't know why this worked
  more or less reliably for the POSIX locale, but it didn't for any other


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-24 16:20:52 +00:00
Oliver Tappe
a3f665982e * reintegrated posix-locale
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-23 23:13:00 +00:00
Axel Dörfler
aa552b077a * Some cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-23 13:11:55 +00:00
Stephan Aßmus
80e6909dd1 * Style cleanup.
* Include correct header for strcmp().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 13:54:36 +00:00
Stephan Aßmus
9ea2a07cf3 Patch by Karvjorm: Fix build of the window_creation app_server test. Thanks!
Closes ticket #6358.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 13:35:18 +00:00
Ingo Weinhold
e82b1340a7 * checksumfs_lookup(): The flags return parameter was never set, leading to
weird behavior when running in kernel.
* checksumfs_io(): Try to lock with timeout when the request is VIP. This
  works around a potential quasi-deadlock: Most write support FS hooks
  potentially allocate memory (e.g. in block_cache_get*()) while holding a
  write lock to a node. When memory is low they have to wait for pages to
  become available. The page writer might block on such node which in turn
  would prevent modified pages from becoming eligible for recycling. Should
  only in rare low memory cases have led to a problem.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 12:20:45 +00:00
Axel Dörfler
2baeb60077 * Fixed the application to actually take the host argument into account, sigh.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 12:09:44 +00:00
Ingo Weinhold
6fc498dafd Added ReadLockWithTimeout().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 11:50:15 +00:00
Ingo Weinhold
3555a42f18 Typo in debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 11:49:50 +00:00
Ingo Weinhold
539ec8ff1e * File::_UpdateLevelInfos(): Fixed child count computation. Was incorrect (0)
for multiple of kFileBlockMaxCount block counts.
* File::_GrowTree(): The inner loop of the level addition part was bogus.
  Apparently I never tested with files >= 2 MB before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 11:49:28 +00:00
Ingo Weinhold
4e08fb8589 Added rw_lock_read_lock_with_timeout().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 11:10:48 +00:00
Ingo Weinhold
4bfbcb535d checksumfs_io(): We are responsible for calling notify_io_request() when we
decide to fail for some reason.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 16:32:59 +00:00
Ingo Weinhold
fb2d716a99 Added support for using underlying devices -- we need to get the size with
the B_GET_GEOMETRY ioctl instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:29:29 +00:00
Ingo Weinhold
8cb1303cfa * Cleaned up debug output.
* _AllocateInGroup(): Fixed incorrect checks. The allocation group counts the
  free, not the used blocks.
* _AllocateInBitmapBlock(): Fixed allocation loop. It was neither incrementing
  the array pointer, nor resetting the bit offset.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:28:03 +00:00
Ingo Weinhold
1e7497da42 Debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:23:46 +00:00
Ingo Weinhold
4701667eb2 Get{Writable,Zero}(): Fixed return values. The type is bool not status_t.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:23:29 +00:00
Ingo Weinhold
94b89e4bcc Debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:16:36 +00:00
Ingo Weinhold
8f6bf75670 * Resize(): Resize the file cache before trying to fill the added space with
zeroes.
* Compute and propagate the check sums of the written file data to the
  underlying device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 09:58:48 +00:00
Ingo Weinhold
9bc87c767b Block does now register writable blocks with Transaction. On commit
Transaction sets the check sums for the changed blocks on the underlying
device, respectively reverts them on roll-back.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 23:21:26 +00:00
Ingo Weinhold
8d591ecc41 * Added CHECKSUM_DEVICE_IOCTL_GET_CHECK_SUM ioctl.
* Added some debug output.
* CheckSumCache::_GetBlock(): Fixed incorrect check. The method could return
  an arbitrary block.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 23:16:46 +00:00
Ingo Weinhold
7514b57ebf Added Data() getter and an assignment operator getting a raw buffer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 23:14:48 +00:00