Commit Graph

2112 Commits

Author SHA1 Message Date
Stefano Ceccherini
78f94f81ff Add a BScrollView around the instantiated TermView (only as a test)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 16:10:02 +00:00
Stefano Ceccherini
07da5d7cce Fixed TermView when used with the constructor which accepts a BRect:
In that case TermView computes rows and columns based on the frame size.
This also made simpler to attach a TermView to a given BWindow, like done
in the RepliTerminal test app. Changed Repliterminal accordingly.
Removed the bool parameter from SetTermSize(), and added a SetTermSize which
accept a BRect, as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 12:13:18 +00:00
Axel Dörfler
9ae0991a0c * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-11 09:38:01 +00:00
Axel Dörfler
1ff7e27441 * Added the PictureTest to the app_server test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-04 13:05:18 +00:00
Stefano Ceccherini
7d601e6cdf Added a test for a weird messaging behaviour
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-31 20:33:09 +00:00
Axel Dörfler
ea607d6f7f * Applied a patch by Christof Lutteroth that updates ALM, and brings new test
apps.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-28 09:00:14 +00:00
Axel Dörfler
0c2788b4ce * Added some pthread_attr_destroy() and pthread_create() tests from
posixtestsuite into our repository.
* A few of the latter ones actually fail on Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-26 17:13:11 +00:00
Michael Lotz
4f5d9ca63d Fix libkernelland_emu build after ConditionVariable and devfs changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-22 23:50:15 +00:00
Axel Dörfler
56376843c1 * Added command line application to use live queries. Useful for testing why
the new mail count is off that much on mail removal.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 09:59:09 +00:00
Oliver Tappe
4d09ea0d3a * restoring zip file I garbled in r33658
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 23:50:55 +00:00
Oliver Tappe
571d840abf * dropped svn:keywords property from all files that carried it
to avoid recurring problems during migration of subversion checkouts
  (restored binary files that were garbled by subversions during checkout)
* added appropriate svn:mime-type property for problematic (binary) files
* removed a single (mistyped) svn:mimetype property 
* dropped svn:eol-style property for cleanup (they all contained 'native')



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 22:42:52 +00:00
François Revol
e19e3efd0d A test app showing that at least on R1/alpha1 there is a deadlock when quitting an BApplication started from another thread.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 20:37:45 +00:00
Oliver Tappe
3287ee32c2 * trying to understand and recover a svn:kweyord problem that might have corrupted this file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 18:13:20 +00:00
Axel Dörfler
4124f4801b * Reserved areas would also be created in existing reserved areas in case the
space was becoming tight. This actually fixes #4778.
* Fixed overflow problem in find_reserved_area().
* Cleaned up the test app, added license.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 11:23:38 +00:00
Axel Dörfler
4b6cb4f5ad * Added test application that easily reproduces bug #4778.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 09:30:48 +00:00
Axel Dörfler
af7fec0304 * A small test application that shows that our abort() implementation does not
work correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 11:05:30 +00:00
Philippe Houdoin
e0aefacfbb Add vector icons
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-09 06:08:22 +00:00
Philippe Houdoin
a02fe27649 Added OpenGL classical gears.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-04 22:00:35 +00:00
Ingo Weinhold
23338ed551 Added -f/--fork option to test inheritance of disable_debugger().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-28 02:51:56 +00:00
Jérôme Duval
d46c72cd75 add a grist to the test truncate command.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-23 19:07:38 +00:00
Stephan Aßmus
b671e9bbdb Added fixes for compiling on GCC4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-23 10:21:58 +00:00
Stephan Aßmus
19b850b383 Fixed the build of the app_server test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-23 08:08:33 +00:00
Philippe Houdoin
47e4e5b32b WIP:
* Renamed StatusAddOn to InterfacesAddOn.
* Made the interfaces list a more self-contained InterfacesListView object
  Now watch for network notifications, but does nothing yet with those.
* Small style changes (but still not compliant). 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-20 23:03:44 +00:00
Oliver Tappe
75f1522155 * reintegrated gsoc-locale-kit branch into trunk - there's more
work to do, but it's about time to give this code more exposure.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 22:23:34 +00:00
Philippe Houdoin
e7443fd575 Set interface name as title.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 22:22:55 +00:00
Fredrik Modeen
0d96800e44 Added some missing files :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 17:40:37 +00:00
Philippe Houdoin
8936b5e96b Fix a typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 02:14:02 +00:00
Philippe Houdoin
4b36ef9c54 Now showing icons, as advertized long ago in the screenshot taken in 2004 :-)
Vector icons welcomed !


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 02:05:29 +00:00
Philippe Houdoin
7fecee2ccb * Remove unneeded files
* Make all but DialupAddOn add-ons build. 

Not that usefull though, as Services, Dummy and Multi add-ons are totally 
useless. Status/Overview add-on show interface status, allow to change their 
configuration like NetworkStatus replicant does. 
But it doesn't watch (yet) for interface/link status change notifications.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 01:18:48 +00:00
Fredrik Modeen
44864ca88f Added some missing files and fixed some last minute changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-16 17:51:43 +00:00
Fredrik Modeen
6046fd9511 Code from Philippe Houdoin old machine :)
Fixed code style (not the PPP part)
Updated it with the current Network Pref.
the PPP add-on don't work.
This should work as much as the Network Pref does today.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-16 17:12:22 +00:00
Stefano Ceccherini
296c53ea2b Removed glinfo test from the Jamfile
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-13 10:39:10 +00:00
Philippe Houdoin
a86d1498c7 Remove obsolete GLInfo, since Artur "aljen" Wyszynski add a far better looking
one in src/preferences/opengl.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-13 10:05:18 +00:00
Axel Dörfler
73e3cd6904 * Applied dirent_test build fix in trunk as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 13:19:22 +00:00
Michael Lotz
d548f1310f Adding a tool I use frequently to quickly decode UHCI status values.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 03:50:59 +00:00
Axel Dörfler
050ad934be * Automatic whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 08:34:45 +00:00
Alexandre Deckner
8e43b9e35e * A mouse shake detecting BMessageFilter that's easily integrated in any app.
* A test app for it. I added a src/test/kits/shared folder as i found it was the
 most logical place for it. Shake it up.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 13:43:21 +00:00
Axel Dörfler
2c69b5b6c0 * Made the libbe_test environment basically working under Haiku - to actually
make it work, one would need to use versioning for all libbe symbols. This is
  worth an 8k price per file that links against libbe.so, so I didn't want to
  commit this as is. An alternative to this solution would be to write a
  separate application that is responsible for the app_server's window. Comments
  welcome.
* Removed BeOS compatbility of the libbe_test stuff.
* Renamed the libbe_test targets from *haiku* to *test*, ie. libbe_haiku.so is
  now called libbe_test.so, haiku_registrar is now test_registrar, etc.
* This also removes BeOS compatibility from tracker/FSUtils.cpp (all BeOS
  compatibility should be removed, but I don't want to make Alexandre more work
  in his branch, and it's not urgent at all).
* Replaced the former "run" scripts for the test environment with a single
  run script (see updated NOTES file).
* Removed the libbe_test target from some applications - this was only to help
  developing them under BeOS, and is thus no longer necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 14:17:13 +00:00
Axel Dörfler
572d609ff0 * Added changing the looks, too, which shows some more problems.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 16:44:56 +00:00
Axel Dörfler
e527d80934 * Wrote application to test the invalidation area on window changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 16:16:25 +00:00
Axel Dörfler
f4300c3072 Missing newline.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 15:55:07 +00:00
Axel Dörfler
ca86af7aa3 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 15:37:50 +00:00
Stefano Ceccherini
1d7d03eba1 Fix gcc4 warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 16:47:21 +00:00
Oliver Tappe
152c862023 * added check for size of BTextView
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 16:46:14 +00:00
Stefano Ceccherini
984c8d3eaf Remove unneeded parenthesis, add a comment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 15:38:49 +00:00
Stefano Ceccherini
160b539f04 This one took me ages to find out, since I was looking for a bug in
BDirectWindow, either in the kit or app_server part. Basically that
calculation overflowed, and the application drawn outside the frame
buffer. Freaky. I'm sure Chart suffers from a similar problem (ticket
#1939)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 14:54:54 +00:00
Philippe Houdoin
bb1fc73715 Fixed BGLView constructor: name string argument wasn't qualified constant!
Fixed GCC4 warnings in GLInfo.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 03:01:48 +00:00
Stefano Ceccherini
4fd3a03652 Remove "CanControlFrameBuffer" again, since it wasn't the cause of the crash:
width and height were off by one, and ParticlesII was writing out of the
frame buffer. Some style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-10 18:46:52 +00:00
Stefano Ceccherini
804f3b726b Reverted r21451, otherwise ParticlesII crashes after a while, if the
accelerant doesn't support moving the frame buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 21:29:22 +00:00
Axel Dörfler
3471097486 * Improved the parsedate() test to produce a reliable test case (with a fixed
"now", and given expected results).
* Now only prints failures, unless you give a command argument (which just
  enables verbose output).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 09:47:20 +00:00
Stefano Ceccherini
36325c7fe5 Gcc4 fixes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 16:53:04 +00:00
Axel Dörfler
b9ee6b3700 * Changed text so that it's obvious those are supposed to be sticky.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 14:54:22 +00:00
Axel Dörfler
8318af01b9 * Added a basic tool tip API, and implementation.
* The BView API can probably be regarded as good enough; the implementation
  might need to be improved over time (also, some things as archivability
  aren't fully implemented yet). The ToolTip.h header should get public once
  finalized.
* Added new B_MOUSE_IDLE message that is sent to a BView after a certain
  time has passed (BToolTipManager::ShowDelay()).
* Added small test app (ToolTipTest) that shows what is already working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 14:47:41 +00:00
Axel Dörfler
5d224e740d * Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-27 18:21:20 +00:00
Stephan Aßmus
5147963dcd headers/private/kernel/util/OpenHashTable.h, Hugo's version, is a bit nicer than
Tracker's OpenHashTable.h which it should eventually replace. We've renamed the
class to BOpenHashTable and changed the interface slightly so that HashTableLink
became superfluous.
Adapted all the code that used it. Since the OpenHashTables no longer clash,
this should fix the GCC4 build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-27 00:39:12 +00:00
Axel Dörfler
2a26c91105 * Fixed typo in usage text.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 11:56:02 +00:00
Oliver Tappe
5c454bb4ce * added another tiny glibc-test, testmb.c, which covers a couple of mb-/wc-related
functions (in a failed attempt to reproduce #4113)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 13:57:38 +00:00
Axel Dörfler
782bdb4030 * Added -i, --mount-image option to let it work on an image file that is
unmounted, and then remounted before each check.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-21 16:16:44 +00:00
Stefano Ceccherini
2fb98dccf3 Added a test for BPicture 'SetFontFamilyAndStyle' which we don't handle yet
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-19 10:14:48 +00:00
Ingo Weinhold
050b103c26 Don't SubInclude the libntfs subdir again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 21:12:04 +00:00
Fredrik Modeen
d0da5b576f Fix compile of BeServed on Zeta but could not get it to work on Zeta - Windows xp combination. I will not do much more work on this. I have a pkg that I intend to make public.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-12 14:03:58 +00:00
Oliver Tappe
16d5c24e53 * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 10:30:09 +00:00
Axel Dörfler
b49a46a7ff * Inode::_AddSmallData() now supports writing at an arbitrary position.
However, Inode::WriteAttribute() still has a number of problems when this is
  actually used; contents could get lost when an attribute is moved from the
  small data section to an attribute file, and the index might not be updated
  correctly when you write within the first 256 bytes, but not at position 0.
  Since these problems aren't exposed with how we're using BFS right now, it's
  not that bad, though (Inode::WriteAttribute() supports everything correctly
  that it had to under BeOS).
* Added test application for certain fs_attr functions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-29 10:40:01 +00:00
Fredrik Modeen
6f2bdd6354 Moved files not used by VS2008 think they are used by VS2002 or can be removed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-25 20:09:12 +00:00
Fredrik Modeen
c50a2db0af added some files I missed..
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-25 20:07:23 +00:00
Fredrik Modeen
fda5049123 Ticket #2547 can now be closed. this makes all the Windows parts of BeServed build in VS2008.
As Olivier Coursière wrote in the ticket/Patch he did.
To install
copy the control panel application in the c:\windows\system32 directory 
run "BeServerd.exe -install" from the command line to install BeServed as a Windows service.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-25 19:56:19 +00:00
Fredrik Modeen
a555f61b61 Moved files not used by VS2008 think they are used by VS2002 or can be removed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-25 19:05:29 +00:00
Fredrik Modeen
beadef3853 Added VS2008 Project and sln (don't work with Express)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-24 23:14:10 +00:00
Fredrik Modeen
15773a7d63 Remove unwanted code, backup, files named old (when same exist but without old), suo files are changed and created when windows project are opened
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-24 22:32:57 +00:00
Oliver Tappe
ebe1a956f0 * fixed a warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-22 19:13:47 +00:00
Oliver Tappe
8ce2ca0fc7 * added a couple of wchar-related tests (from glibc-2.3.2) that expose
several problems in our wchar-support - the worst of which being that
  our compilers define wchar_t as short while the glibc-implementation
  is relying on it being 32-bits wide ...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-22 19:13:32 +00:00
Axel Dörfler
c0fba701e1 * Added dprintf_no_syslog() to our kernel emulation layer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 08:14:31 +00:00
Axel Dörfler
9b9bbca910 * Fixed Map::GetFileMap(), added some more tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 12:11:37 +00:00
Axel Dörfler
503e56854f * Started a file_map test app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 10:50:09 +00:00
Axel Dörfler
5734ece852 * Improved output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 12:16:25 +00:00
Oliver Tappe
2dc3fd4652 * fixed gcc4-build of DriverSettingsTest
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30866 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-26 15:23:06 +00:00
Oliver Tappe
f36c9e44ac * added a couple more test dates that contain timezones
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-26 15:22:04 +00:00
Oliver Tappe
2660bd9be1 * adjusted to allow for switching between alignments (and now makes use of
the layouting engine, too)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-14 17:39:00 +00:00
Axel Dörfler
f47bff0880 * Made the iso9660 file system buildable within the fs_shell (iso9660_shell).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-05 20:07:24 +00:00
Axel Dörfler
ce34c0c260 * Removed old BeOS ISO9660 file system.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-05 20:06:50 +00:00
Oliver Tappe
5b3152c4fb * fix gcc4 build of translator add-on tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 19:01:32 +00:00
Oliver Tappe
bd3cb5f1b0 * added number format tests to build of locale kit
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 18:59:35 +00:00
Stephan Aßmus
6ed1dfa1b0 GCC4 build fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 17:31:24 +00:00
Oliver Tappe
10169155a9 * fixed one more gcc4 warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 15:41:48 +00:00
Oliver Tappe
3a268d9080 * applied several fixes to make locale kit buildable with gcc4, too
* actually, all those fixes were already contained in PulkoMandys patch,
  but I just missed that :-/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 13:44:35 +00:00
Oliver Tappe
214cf2d02b * catalogTestAddOn was missing from LocaleKitTests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 13:27:17 +00:00
Oliver Tappe
723383c0f4 Applied patch by PulkoMandy, adjusted and extended by myself:
* integrating most of the locale kit into the build (and image)
* removed LocaleBuild.h and _IMPEXP_LOCALE since that does not make
  sense for elf (which usually exports all symbols anyway)
* added a couple of locale kit related pseudo targets for convenience
Hey, some of that stuff already seems to work :-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 21:56:16 +00:00
Oliver Tappe
c3ac87e8fc * Copied imported OpenTracker Locale Kit files from the vendor branch
into their new homes (at least for now, might need some adjustment).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 19:23:59 +00:00
Axel Dörfler
c9928eb11a * Moved random_file_actions to the other file system tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:06:32 +00:00
Axel Dörfler
bf9f608567 * The multiple file creation was not correct, and could create way more files
than planned. Now, it always adds 10% to the max file/dir count unil 50% is
  reached.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:03:44 +00:00
Axel Dörfler
3ea61f1f22 * Add option -a to always check before contents are removed.
* Print the settings on start in verbose mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:01:11 +00:00
Axel Dörfler
636ccbf306 * Write the identifier as attribute to the file to make later checks possible.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 15:58:29 +00:00
Axel Dörfler
3b9dec1c07 * remove_dir() can no longer remove the base dir.
* Added a remove_dirs() that can reliably clean up the mess afterwards.
* Added option -b to set an alternative base dir.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 15:32:56 +00:00
Axel Dörfler
97f89e0360 * All files now get unique, and verifiable contents.
* Added argument -c|--check-interval to determine how often the file contents
  are checked.
* Added some statistics.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 13:01:54 +00:00
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
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