Adjusted the test according to the new BPartition::Resize() semantics.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-09-21 21:31:01 +00:00
parent 557cfcdb26
commit 555b81adfe
@@ -604,7 +604,14 @@ main()
// test resize a partition
if (error == B_OK) {
if (BPartition *partition = device.ChildAt(1)) {
status_t status = partition->Resize(1024 * 200, false);
// uninitialize contents
status_t status = partition->Uninitialize();
if (status != B_OK) {
printf("Uninitializing the partition failed: %s\n",
strerror(status));
}
// resize
status = partition->Resize(1024 * 200);
if (status != B_OK) {
printf("Resizing the partition failed: %s\n",
strerror(status));