Commit Graph

1918 Commits

Author SHA1 Message Date
Axel Dörfler
59b3d28a25 * Wrote a test application trying to reproduce bug #2197, ie. modelled after
Mozilla's PR_NewTCPSocketPair() -- unfortunately, it doesn't seem to work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 21:01:25 +00:00
Axel Dörfler
d31093e866 * Start of a test application to hopefully be able to reproduce the remaining
BFS problems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 15:36:24 +00:00
Ingo Weinhold
3c3d2b85cd * Moved the time_stats tool to src/bin/debug.
* Fixed some gcc 4 warnings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-18 10:08:06 +00:00
Ingo Weinhold
53cce89bf5 Fixed build. The tests actually reveal a problem in the IORequest
implementation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-07 16:01:29 +00:00
Oliver Tappe
411461b72a * removed unused variable
* automatic whitespace cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-07 15:11:03 +00:00
Ingo Weinhold
f1fdb02675 Added jamfile for building ntfs for userland.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 11:33:04 +00:00
Stephan Aßmus
457f9cf840 If you had added Benchmark as a target, your build would have been broken,
because I forgot to add these files in my last commit... sorry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 08:06:05 +00:00
Oliver Tappe
f57313518e * added a test for BTextView which exposes a couple of problems
with large contents


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:28:54 +00:00
Stephan Aßmus
0596ce4f66 One can now chose clipping or no clipping (--clipping or -c) and the drawing
mode. The ClippedLineTest is removed, since that was a dup of RandomLines
anyways.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:10:21 +00:00
Stephan Aßmus
418ce29089 Make Benchmark pick up the test you want to run from the command line args.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:41:41 +00:00
Stephan Aßmus
1f7211f99b Integrate a BColumnListView...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-01 19:53:14 +00:00
Stephan Aßmus
6d9903099d Patch by maxime.simon: Make Playground use a BColorControl instead of those
text controls for defining the color. Thanks a lot! (Also took the opportunity
to fix some coding style violations which had already been there.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-01 10:28:34 +00:00
Stephan Aßmus
7fd8106e2a Because I didn't remove all the old drawing code from all the controls, yet,
it's a lot of fun to compare the new and old look by pressing the Revert
button...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-23 12:28:21 +00:00
Stephan Aßmus
227e55e5aa Also allow looking at save file panels.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-23 11:14:55 +00:00
Stephan Aßmus
5b8725efcc * Added code for opening a BFilePanel.
* Made sure that the BButtons use the maximum available width. This makes the
  whole layout use the full available size.
* Added optional code to test layout item usage of BTextControl and BMenuField.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-22 11:29:40 +00:00
Ingo Weinhold
98092e9867 gcc 4 fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-18 22:43:47 +00:00
Ingo Weinhold
5c20c5a552 Replaced the mutex and read-write lock implementations by the kernel code,
too. It's slightly adjusted to use the thread blocking syscalls and a benaphore
style threads spinlock replacement. This solves the following problems:
* The static mutex/rwlock initializers are safe now.
* The rwlock implementation is compatible with the kernel implementation. E.g.
  a write lock owner can acquire a read lock, which would dead-lock before.
* We don't use semaphores anymore. With a userland BFS one could quite easily
  hit the global semaphore limit before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-18 02:03:41 +00:00
Ingo Weinhold
4a92b6134f _mutex_trylock():
* The loop is unnecessary, since the call doesn't block anyway, so it can't
  be interrupted.
* Set the holder, if KDEBUG is enabled. Otherwise the panic() in
  recursive_lock_unlock() would be triggered.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 03:34:08 +00:00
Ingo Weinhold
51ecdb00aa Replaced the recursive lock implementation by the kernel implementation
(slightly adjusted). It is completely based on mutexes, not needing any other
problematic features. Not sure why the previous implementation was doing it
differently.
This also adds the previously missing recursive_lock_trylock().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 01:48:28 +00:00
Ingo Weinhold
110ffb6a22 The userland version of BFS almost builds again. recursive_lock_trylock() is
not exported by the UserlandFS interface yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 01:34:49 +00:00
Ingo Weinhold
e3c89b1935 Removed superfluous strlcpy.c source. Haiku has strlcpy() in libroot.so
and the emulation library doesn't work on BeOS anymore anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 00:42:49 +00:00
Ingo Weinhold
1de1f379a1 * Replaced the dummy slab implementation with that of the UserlandFS.
* Correctly implemented object construction and destruction.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 00:34:55 +00:00
Ingo Weinhold
cc586449f7 * Split misc.cpp further.
* Removed user_strcpy() (it doesn't exist in the kernel) and reimplemented
  user_{memcpy,strlcpy}().
* Added kernel_debugger().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-09 00:23:33 +00:00
Ingo Weinhold
20bc371082 * Replaced the broken condition variable implementation (the
sConditionVariablesLock is needed) with the one I used for the UserlandFS,
  which is a slightly adjusted kernel version.
* Got rid of sThreadsLock. It's not necessary and didn't work like used anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 18:27:06 +00:00
Ingo Weinhold
52c8e07fde Broke kernelland_emu.cpp into several source files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 17:55:36 +00:00
Ingo Weinhold
aa085ffef9 * Removed UserlandFS shared Locker class. Instead use BLocker in userland and
RecursiveLock in the kernel.
* Several adjustments according to UserlandFS header changes.
* Re-added reiserfs to image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 23:27:35 +00:00
Ingo Weinhold
8dcef9a6ad * Made ASSERT definition conditional to avoid clashes.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 23:17:18 +00:00
Alexandre Deckner
f11e13ffa2 * Fix build of ShelfTest
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 12:36:41 +00:00
Ingo Weinhold
180e55a48b Added option "--multi", which creates another thread and crashes both, the
new thread and the main thread in this order. Allows to reproduce #2956
quite often.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 22:53:46 +00:00
Stephan Aßmus
c88313977f * Added test for more menu situations.
* Refactored hard-coded group insets.
* Geve second tab BView the standard gray background.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 15:06:06 +00:00
Stephan Aßmus
efa8a77d4a Show more controls.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-08 21:14:15 +00:00
Stephan Aßmus
bb17b6b92f Get a lot more views and controls on display.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 22:15:16 +00:00
Ingo Weinhold
06828840d7 * Link the test programs with --export-dynamic. This shows that my previous
assumption, that the program image is ignored when relocating symbols of
  dlopen()ed objects, is incorrect.
* Adjusted the tests that were failing due to that.
* The RTLD_NEXT test also fails with openSuse 10.3 -- apparently the semantics
  has changed between the Linux versions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 18:16:46 +00:00
Karsten Heimrich
2f475458bc * fix typo
* make the target a bit more visible



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-31 21:21:24 +00:00
Karsten Heimrich
9d95156703 * Add test for BScrollView SetBorder, which exposes some problems using the
layout version of that class. (drawing artefacts, wrong scrollbar placement)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-31 13:32:57 +00:00
Stefano Ceccherini
530ce9aaab added mbtest to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 16:10:39 +00:00
Axel Dörfler
8e8b747220 * Fixed minor style issue :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 10:39:07 +00:00
Axel Dörfler
01b60f3d7e * Fixed one more case of a resulting 0 byte buffer. Also added a test case for
it to the test app. This finally fixes ticket #2594.
* Of course, I neither saw this one before, nor did I accidently reproduce it
  with a test :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 10:38:05 +00:00
Stephan Aßmus
a4ef4a4915 Beginnings of a test app that shows all Interface Kit controls in various
configurations so that one can work better on the look.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 09:27:41 +00:00
Axel Dörfler
15d2b7b29d * This test would have reproduced the "buffer > 0" ASSERT problem with the
previous release of BufferQueue. IOW #2594 should be fixed now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-18 23:27:39 +00:00
Axel Dörfler
124ee2f4ef * A new test app for the BufferQueue implementation - this currently fails.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 16:40:12 +00:00
Rene Gollent
1f7f1654fb The problem appears to be at the level of _PointerList_ itself. Also note, BList does not exhibit the issue.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 04:52:18 +00:00
Rene Gollent
4c1a09d0cf Added a test that exposes a problem in BObjectList/PointerList. If a list contains 17 items or greater, and you attempt to sort it with a sort function that always returns 1 regardless of the items being compared, it will crash 100% of the time. Looking into why next.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 04:43:53 +00:00
Karsten Heimrich
45735be6c9 * extend test with sliders containing min/ max labels
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-08 16:12:23 +00:00
Axel Dörfler
ea5c7202cb * If a window was hidden during resize/movement, it would still be in resizing
or moving mode when it was shown again. Added a test app HideAndShow which let
  you easily reproduce the faulty behaviour (with a previous version of the
  app_server, that is).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-05 10:32:30 +00:00
Philippe Houdoin
16edc24aba Ooops, typo spotted by Diego. Thanks proofreader(s).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-31 17:03:36 +00:00
Philippe Houdoin
0832f66cc5 Added a small faking OpenGL renderer add-on as a testbed for direct
mode threading/drawing issue.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-30 20:17:18 +00:00
Ingo Weinhold
e30bbad2c2 Added tests for RTLD_NEXT.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 21:58:06 +00:00
Ingo Weinhold
67ef7f5678 Added a small test suite for the runtime loader. The tests are designed
to succeed on Linux. FreeBSD fails some tests since it seems to have a
different load order (depth-first instead of breadth-first). Haiku fails
a lot of tests due to its POSIX non-compliant dlopen().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 02:04:53 +00:00
Axel Dörfler
a26045b7a6 * cache_detach_sub_transaction(), and cache_abort_sub_transaction() now support
discarded blocks correctly as well.
* cache_detach_sub_transaction() left cached_block::original_data unchanged even
  if the parent data was to become current (in case the sub transaction didn't
  change the block yet). This could cause outdated blocks to be written back.
* cache_detach_sub_transaction() also set cached_block::previous_transaction
  for all blocks, not just the ones with a previous transaction. This could
  cause blocks to be written twice for no reason.
* cache_start_sub_transaction() did not change the num_blocks count for
  discarded blocks.
* block_cache_discard() now panics if the block was already changed in the
  current transaction.
* Improved test application, added more tests, revealing the above bugs in
  cache_detach_sub_transaction().
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 13:52:34 +00:00