Commit Graph

1894 Commits

Author SHA1 Message Date
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
Axel Dörfler
2ecc2162bb * Now also sets the mutex::holder field (only present when KDEBUG is defind),
to make ASSERT_LOCKED_MUTEX() work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 11:54:09 +00:00
Axel Dörfler
11ab7172d9 * Make static initializers sort of work in the test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 11:05:02 +00:00
Axel Dörfler
96e19c19fc * The first functions now handle the "discard" flag correctly (namely
cache_end_transaction(), and cache_start_sub_transaction()).
* Further work on the test application, it's now actually usable, first test
  passes.
* dump_block() did erroneously print 'B' for the dirty flag; now both dirty and
  discard have the 'D' (3rd and 5th column).
* block_cache::LowMemoryHandler() is now private (and got an underscore prefix).
* Minor cleanup, shuffled some methods around.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 22:40:11 +00:00
Axel Dörfler
167460c123 * Brought libkernelland_emu.so up-to-date again.
* Added Slab stubs (from tcp_shell).
* Added (yet untested) support for anonymous condition variables.
* Added low resource manager functions.
* Allows including thread.h now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 16:46:08 +00:00
Axel Dörfler
21b2687fab * No need to keep Michael's old VM stuff around.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 15:32:02 +00:00
Axel Dörfler
5b812019b4 * Added function block_cache_discard() that flushes blocks from the block cache,
discarding their changes. This functionality currently only works correctly
  when no transactions are used.
* Started test application for the block cache, doesn't do anything yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 14:49:33 +00:00
Stephan Aßmus
5ae0bbaad0 Added test for BWindow::FindView(BPoint).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 14:47:18 +00:00
Axel Dörfler
617fdc096a * Added "progress bars".
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 12:51:20 +00:00
Axel Dörfler
2395e3a496 * Don't traverse symlinks.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 12:35:28 +00:00
Axel Dörfler
5bc160ddb0 * The AdaptiveBuffering::_Write() method was exiting early, causing the possibly
random SHA hashes.
* Moved AdaptiveBuffering into its own file.
* Fixed updating a hash file.
* Implemented the "consistency_check" app that checks if a file has changed,
  and prints warnings if there are any.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 10:54:51 +00:00
Axel Dörfler
91af3542a4 * Now writes and updates the hash file.
* Unfortunately, there still seems to be a problem in the hash generation...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-31 22:30:41 +00:00
Axel Dörfler
d6013f6096 Work-in-progress:
* Started a file consistency checker; right now, it will just compute a SHA256
  hash value for every file, and dump it to stdout.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-31 17:05:49 +00:00
Axel Dörfler
9aec3dd627 * Complete rename of randomread to random_read.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-31 14:51:27 +00:00
Axel Dörfler
144d884dad * Moved "randomread" out of the bfs directory, as it's not BFS specific.
* Also renamed it to random_read, but SVN needs two revisions for that...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-31 14:49:43 +00:00
Axel Dörfler
2e04b65212 * Added test application for the GCC2 demangler.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-30 18:12:20 +00:00
Ingo Weinhold
bc3955fea5 Preparations for removing __BEOS__ from the compiler defines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 21:46:26 +00:00
Stephan Aßmus
c92e0a11c0 Fixed locations of binaries and some output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 16:56:14 +00:00
Stephan Aßmus
3f3c9fdd04 Fixes to make the app_server test env compile, but I have various other
fixes in my tree to make it compile on R5 still. I don't really want to
check this in, I'd rather adopt the buildsystem to make it run on Haiku
itself...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 16:55:17 +00:00
Stephan Aßmus
39f3b70eaa Simplification.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 16:52:44 +00:00
Axel Dörfler
c3657d1abd stippi+axeld:
* Made the StressTest app into a real stress test for the app_server, as the
  windows are now randomly changed, ie. moved, resized, hidden, activated, ...
* This already helped identifying two long-hiding bugs in the app_server code!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-17 15:46:45 +00:00
Axel Dörfler
58a77fd3c9 * Fixed the incorrect ASSERT that possibly dropped you into KDL while deleting
something (as reported by Marcus and Bruno on the mailing list).
* AllocationGroup::Allocate() would always invalidate the largest block if
  it did not cover the largest part of the group; now it only invalidates it
  if it has been cut before.
* Added small test app for the invalidation part.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-16 10:00:34 +00:00
Stephan Aßmus
5604c88c81 Created an icon for Playground.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 16:16:20 +00:00
Stephan Aßmus
bfaa132f3f Also test what happens when there is a view with an event mask. (Currently
shows a bug in the app_server event dispatching which is going to be fixed
next.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:08:53 +00:00
Stephan Aßmus
e0418bf91e Fixed wrong target name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28057 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:07:50 +00:00